package Month09.day0922;

import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        //给定n个整数和一个整数x，小乐乐想从n个整数中判断x出现几次，请编程帮他实现。
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] arr = new int[a];
        for (int i = 0; i < a; i++) {
            arr[i] = sc.nextInt();
        }
        int key = sc.nextInt();//接收重复的数字
        int count = 0;//计数器，记录出现重复数字的次数
        for (int i = 0; i < a; i++) {
            if(arr[i] == key){
                count++;
            }
        }
        System.out.println(count);
    }//BC130 小乐乐查找数字
}
